package com.cloud.applet.result;

/**
 * @Description:
 * @ClassName: ResponseResult
 * @Author: 流光亦断
 * @Date: 2021/9/23 16:06
 * @Version: 1.0     // 版本
 */

public class ResponseResult<T> {
    private int code;
    private String msg;
    private T data;
    public ResponseResult() {
    }

    public ResponseResult(T data) {
        this(200,"操作成功！");
        this.data = data;
    }

    public ResponseResult(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
